/**
 * 
 */
package mdb.com.vn.persist;

import java.math.BigDecimal;
import java.util.List;

import mdb.com.vn.model.FixedDepositCasa;

/**
 * @author tu.dod
 *
 */
public interface FixedDepositCasaDAO extends AbstractDAO<FixedDepositCasa, Integer>{
	
	public List<FixedDepositCasa> getAllFixedDepositCasas();
	public List<FixedDepositCasa> findByPersionalType(int type);
	public List<FixedDepositCasa> findByCorporateType(int type);
	public List<FixedDepositCasa> findByCode(String sabookCode,String saAccoutCode);
	public List<FixedDepositCasa> findByCode(String sabookCode);
	public List<FixedDepositCasa> findByCustomerRef(String customerRef);
	public List<FixedDepositCasa> findByCodeCS(String saAccoutCode);
	public int getSCardFDCSAvailable (String customerRef);
	public int getSCardFDCSAvailableException (String customerRef,String accountException);
	public int countThanksCasrd();
	public BigDecimal sumAmount();
}
